package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

type Article struct {
	gorm.Model
	Title    string `gorm:"type:varchar(100)"`
	Category string `gorm:"type:varchar(100)"`
	Content  string `gorm:"type:varchar(200)"`
	Uid      int    `gorm:"type:int"`
}
